% finds and returns neuron from connectome passed to function (as
% obj) which is located on neuronId position in neuronLayer layer.
function neu = getNeuron(obj, neuronId, neuronLayer)
            for i=1:length(obj.neurons)
                if((obj.neurons(1,i).numberInLayer == neuronId) && (obj.neurons(1,i).layer == neuronLayer))
                    neu = obj.neurons(1,i);
                    break;
                end
            end
        end